#include <crt_init.h>

HRESULT InitSocketEnv(int low, int high)
{
#if (TARGET_OS == OS_WINDOWS)
	WORD verision = MAKEWORD(low, high);
	WSADATA lpData;
	int intEr = WSAStartup(verision, &lpData);
	if (intEr != 0)
	{
		return E_FAIL;
	}
#endif
	return S_OK;
}

HRESULT UnInitSocketEnv(int low, int high)
{
#if (TARGET_OS == OS_WINDOWS)
	if (WSACleanup() != 0)
	{
		return E_FAIL;
	}
#endif
	return S_OK;
}

HRESULT InitRPCEnv(LPCSTR guid)
{
	return S_OK;
}

HRESULT UnInitRPCEnv(LPCSTR guid)
{
	return S_OK;
}
